{% extends "common/layout_main.html" %}
{% block content %}
    <div class="row  border-bottom">
        <div class="col-lg-12">
            <div class="tab_title">
                <ul class="nav nav-pills">
                    <li class="current">
                        <a href="{{ buildUrl('/member/index') }}">会员列表</a>
                    </li>
                    <li>
                        <a href="{{ buildUrl('/member/comment') }}">会员评论</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="row m-t">
        <div class="col-lg-12">
            <div class="row">
                <div class="col-lg-12">
                    <div class="m-b-md">
                        <a class="btn btn-outline btn-primary pull-right" href="{{ buildUrl('/member/set') }}?id={{ member.id }}">
                            <i class="fa fa-pencil"></i>编辑
                        </a>
                        <h2>会员信息</h2>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-2 text-center">
                    <img class="img-circle circle-border" src="{{ member.avatar|default(buildStaticUrl('/images/common/avatar.png')) }}"
                         width="100px" height="100px">
                </div>
                <div class="col-lg-10">
                    <p class="m-t">姓名：{{ member.nickname }}</p>
                    <p>性别：{% if member.sex == 1 %}
                        男
                    {% else %}
                        女
                    {% endif %}</p>
                </div>
            </div>
            <div class="row m-t">
                <div class="col-lg-12">
                    <div class="panel blank-panel">
                        <div class="panel-heading">
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active">
                                        <a href="#tab-1" data-toggle="tab" aria-expanded="false">会员订单</a>
                                    </li>
                                    <li>
                                        <a href="#tab-2" data-toggle="tab" aria-expanded="true">会员评论</a>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <div class="panel-body">
                            <div class="tab-content">
                                <div class="tab-pane active" id="tab-1">
                                    <table class="table table-striped">
                                        <thead>
                                        <tr>
                                            <th>订单编号</th>
                                            <th>支付时间</th>
                                            <th>支付金额</th>
                                            <th>订单状态</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td colspan="4">暂无订单</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="tab-pane" id="tab-2">
                                    <table class="table table-striped">
                                        <thead>
                                        <tr>
                                            <th>评论时间</th>
                                            <th>评分</th>
                                            <th>评论内容</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                        </tr>
                                        <tr>
                                            <td colspan="3">暂无评论</td>
                                        </tr>

                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
